﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Gao.Poker.Domain
{
    /// <summary>
    /// 商品信息表
    /// </summary>
    public class Product
    {

        public Product()
        {
            StockDate = DateTime.Now;
            BZQ = DateTime.Now;
        }

        [Key]
        public int ID { get; set; }
        [StringLength(30)]
        [Required]
        public String BarCode { get; set; }
        /// <summary>
        /// 商品名称(酒水，奖品等)
        /// </summary>
        [StringLength(30)]
        [Required]
        public String ProductName { get; set; }
        /// <summary>
        /// 计量单位(如箱，瓶，个)
        /// </summary>
        [StringLength(10)]
        public String PUnit { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int PNumber { get; set; }
        /// <summary>
        /// 单价(元)
        /// </summary>
        public Decimal PPrice { get; set; }
        /// <summary>
        /// 兑换所需积分
        /// </summary>
        public int PIntegral { get; set; }
        /// <summary>
        /// 保质期
        /// </summary>
        public DateTime BZQ { get; set; }
        /// <summary>
        /// 入库日期
        /// </summary>
        public DateTime StockDate { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(200)]
        public String Remark { get; set; }
    }
}
